package com.example.myweb.Dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class PollCreateDTO {
    @NotBlank
    private String question;
    @Size(min = 2, max = 10, message = "投票选项必须在2到10个之间")
    private List<String> options;
    // (可选) private boolean multipleChoice;
    // (可选) private LocalDateTime deadline;
}